<?php
if(empty($requirement)){ ?>
    <h1 class="logo-name" style="font-size: 30px;text-align: center;letter-spacing: 0px">未填写择偶标准..</h1>
    <script>
        $(window).ready(function(){
            $('#requirement_title').find('.ibox-tools').html('<a title="添加择偶要求" data-toggle="modal" data-target="#myRequirementDialog" data-data="add">' +
                '<i class="fa fa-plus" style="color: black"></i></a>');
        })
    </script>
    <?php
}else{ ?>
    <div class="row">
        <div class="col-sm-5">
            <label style="color: #2f96b4">工作要求：</label><?=empty($requirement['mr_work']) ? '无':$requirement['mr_work'] ?>
        </div>
        <div class="col-sm-5">
            <label style="color: #2f96b4">经济要求：</label><?=empty($requirement['mr_ecom']) ? '无':$requirement['mr_ecom'] ?>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-5">
            <label style="color: #2f96b4">家境要求：</label><?=empty($requirement['mr_home']) ? '无':$requirement['mr_home'] ?>
        </div>
        <div class="col-sm-5">
            <label style="color: #2f96b4">学历要求：</label><?=empty($requirement['mr_edu']) ? '无':$requirement['mr_edu'] ?>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-5">
            <label style="color: #2f96b4">外貌要求：</label><?=empty($requirement['mr_looks']) ? '无':$requirement['mr_looks'] ?>
        </div>
        <div class="col-sm-5">
            <label style="color: #2f96b4">身材要求：</label><?=empty($requirement['mr_figure']) ? '无':$requirement['mr_figure'] ?>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-5">
            <label style="color: #2f96b4">房子要求：</label><?=empty($requirement['mr_house']) ? '无':$requirement['mr_house'] ?>
        </div>
        <div class="col-sm-5">
            <label style="color: #2f96b4">车子要求：</label><?=empty($requirement['mr_car']) ? '无':$requirement['mr_car'] ?>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-2">
            <label class="label-info"><?=$requirement['mr_figure']=='是' ? '接受':'不接受' ?>离异、丧偶</label>
        </div>
        <div class="col-sm-2">
            <label class="label-info"><?=$requirement['mr_hadchild']=='是' ? '接受':'不接受' ?>有小孩</label>
        </div>
        <div class="col-sm-2">
            <label class="label-info"><?=$requirement['mr_issick']=='是' ? '接受':'不接受' ?>身体不良健康</label>
        </div>
        <div class="col-sm-2">
            <label class="label-info"><?=$requirement['mr_withparents']=='是' ? '愿意':'不愿意' ?>与父母住一起</label>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-2">
            <label class="label-info"><?=$requirement['mr_wantchild']=='是' ? '想':'不想' ?>要小孩</label>
        </div>
        <div class="col-sm-2">
            <label class="label-info"><?=$requirement['mr_quickmerry']=='是' ? '接受':'不接受' ?>闪婚</label>
        </div>
        <div class="col-sm-2">
            <label class="label-info"><?=$requirement['mr_merryperiod'] ?>结婚</label>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <label style="color: #2f96b4"> &nbsp;其&nbsp; 他 &nbsp;：</label><?=empty($requirement['mr_other']) ? '无':substr($requirement['mr_other'],0,180) ?>
        </div>
    </div>
    <script>
        $(window).ready(function(){
            $('#requirement_title').find('.ibox-tools').html('<a title="编辑择偶要求" data-toggle="modal" data-target="#myRequirementDialog" data-data=<?=\yii\helpers\Json::encode($requirement) ?>>' +
                '<i class="fa fa-edit" style="color: black"></i></a>');
        })
    </script>
    <?php
}
?>
<script>

</script>
